<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link href="/carworld_weixin/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="/carworld_weixin/css/user-style.css" rel="stylesheet">
<script src="/carworld_weixin/js/jquery-3.3.1.min.js"></script>
<script src="/carworld_weixin/js/bootstrap.min.js"></script>
<style type="text/css">
.tb960x90 {
	display: none !important;
	display: none
}
</style>
</head>
<body>
	<section class="aui-flexView">
		<section class="aui-scrollView">
			<div class="aui-centers-box" style="height: 155px">
				<div class="aui-head-title">
					<h2 style="padding-top: 7px"></h2>
					<div class="aui-flex" style="padding: 7px">
						<div class="aui-flex-pu">
							<em>
								<i class="icon icon-vip"></i>
								普通会员
							</em>
						</div>
						<div class="aui-flex-box">
							<p id="member-info"></p>
						</div>
					</div>
				</div>
				<!--  因为目前没有编辑需求，所以去掉--Bsea
				<div class="aui-edit-btn">
					<a href="javascript:;">
						<i class="icon icon-edit"></i>
					</a>
				</div>
				-->
				<div class="aui-flex aui-flex-top" style="padding: 7px">
					<div class="aui-img-logo">
						<img src="" alt="" id="user-photo">
					</div>
					<div class="aui-flex-box">
						<!--<span class="aui-flex-box-item">-->
							<!--<p>优惠券</p>-->
							<!--<p class="aui-bod" id="mealNum"></p>-->
						<!--</span>-->
						<span class="aui-flex-box-item">
							<p style="color: orange">积分</p>
							<p class="aui-bod" id="jifen" style="color: orange"></p>
						</span>
						<span class="aui-flex-box-item">
							<p style="color: orange">余额</p>
							<p class="aui-bod" id="balance" style="color: orange"></p>
						</span>
						<span class="aui-flex-box-item">
							<p style="color: orange">会员号</p>
							<p class="aui-bod" id="canum" style="color: orange"></p>
						</span>
					</div>
				</div>
			</div>
			<div class="aui-flex" style="padding: 7px">
				<!--<div class="aui-flex-box">-->
					<!--<h2>我的订单</h2>-->
				<!--</div>-->
				<!--<div class="aui-flex-box-all">-->
					<!--<a href="/carworld_weixin/pages/page_myOrder.html">查看全部</a>-->
				<!--</div>-->
			</div>
			<div class="aui-centers-ad" style="padding: 7px">
				<div class="aui-centers-img">
					<img src="/carworld_weixin/images/user-banner.jpg" alt="">
				</div>
			</div>
			<div class="aui-palace" style="padding: 0px">
				<!-- 第一个 -->
				<a href="/carworld_weixin/pages/page_userCard/myAllMeals.html" class="aui-palace-grid">
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/icon-item-006.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>我的卡包</h2>
						<p>查看会员卡套餐</p>
					</div>
				</a>
				<a href="javascript:alert('还不是青铜或钻石会员，无权限查看~')" class="aui-palace-grid">
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/icon-item-004.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>分红收益</h2>
						<p>查看分红明细</p>
					</div>
				</a>
				<a href="/carworld_weixin/dividend/returnVerifySharHolder" class="aui-palace-grid">
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/icon-item-002.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>青铜会员</h2>
						<p>一键注册青铜会员</p>
					</div>
				</a>
				<a href="javascript:alert('您还不是青铜或钻石会员，无权限申请~')" class="aui-palace-grid">
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/icon-item-003.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>提现申请</h2>
						<p>分红余额提现</p>
					</div>
				</a>
				
				 <a href="javascript:alert('活动还未开始，敬请期待吧~')" class="aui-palace-grid">
				<!-- <a href="/carworld_weixin/pages/page_activity/recharge.html" class="aui-palace-grid"> -->
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/recharge.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>自助充值</h2>
						<p>活动上线中...</p>
					</div>
				</a>
				<a href="javascript:alert('请拨打门店电话：(02)89580828')" class="aui-palace-grid">
					<div class="aui-palace-grid-icon">
						<img src="/carworld_weixin/images/icon-png/icon-item-005.png" alt="">
					</div>
					<div class="aui-palace-grid-text">
						<h2>在线客服</h2>
						<p>9:00~21:00在线服务</p>
					</div>
				</a>
			</div>
			<div class="aui-button-btn ">
				<a style="background-color: #5bc0de" href="javascript:alert('您还不是青铜或钻石会员，联系门店升级身份即可坐收分红~')">我要分享邀请码赚钱</a>
			</div>
			<footer class="aui-footer aui-footer-fixed">
				<a href="/carworld_weixin/" class="aui-tabBar-item">
					<span class="aui-tabBar-item-icon">
						<i class="glyphicon glyphicon-home"></i>
					</span>
					<span class="aui-tabBar-item-text">首页</span>
				</a>
				<a href="/carworld_weixin/pages/page_userCard/myVipCard.html" class="aui-tabBar-item ">
					<span class="aui-tabBar-item-icon">
						<i class="glyphicon glyphicon-heart"></i>
					</span>
					<span class="aui-tabBar-item-text">会员卡</span>
				</a>
				<a href="/carworld_weixin/pages/page_userOrder/myOrder.html" class="aui-tabBar-item ">
					<span class="aui-tabBar-item-icon">
						<i class="glyphicon glyphicon-tasks"></i>
					</span>
					<span class="aui-tabBar-item-text">订单</span>
				</a>
				<a href="/carworld_weixin/user/userPage" class="aui-tabBar-item">
					<span class="aui-tabBar-item-icon">
						<i class="glyphicon glyphicon-user"></i>
					</span>
					<span class="aui-tabBar-item-text">我的 </span>
				</a>
			</footer>
		</section>
	</section>
	<script>
		$(function() {
            $.ajax({
                type: 'GET',
                url: '/carworld_weixin/vipcard/getCardInfo',
                success: function(data) {
                    if (null == data.card) {
                        $('#balance').text('￥0');
                    } else {
                        $('#balance').text('￥' + data.card.amt);
                    }
                }
            });
			$.ajax({
				type : 'GET',
				url : '/carworld_weixin/user/getUserInfo',
				dataType : 'json',
				contentType : 'application/json',
				success : function(data) {
					$('h2:first').text(data.user.user_nickname);
					$('#user-photo').attr("src", data.user.user_photo);
                    if(null==data.user.score){
                        $('#jifen').text('0分');
                    }else {
                        $('#jifen').text(data.user.score+'分');
                    }
                    $('#canum').text(data.user.mobile);
					if (null != data.shop) {
						if (data.user.user_isVerificated == 1) {
							$('#member-info').text('已通过【' + data.shop.name + '】会员验证');
						} else {
							$('#member-info').text('会员信息未验证，请到前台收银处联系~');
						}
					}
						// else {
					// 	$('#member-info').text('您当前还是游客身份~');
					// }

				}
			});

		});
	</script>
</body>
</html>